﻿@model mBlog.ViewModels.ListView<mBlog.ViewModels.TagDetail>

@{
    ViewBag.Title = "Tags";
}

<h2>Tags</h2>
<table id="postsTable" cellspacing="0">
    <tr>
        <th>
            Actions
        </th>
        <th>
            Name
        </th>
        <th>
            EncodedName
        </th>

    </tr>
    <tbody>
        @foreach (var tag in Model.List)
        {
            <tr>
                <td>
                    @Html.ActionLink("Delete", "Delete", new { id = tag.Id })
                </td>
                <td>
                    <strong>
                        @Html.ActionLink(tag.Name, "Edit", new { id = tag.Id })
                    </strong>
                </td>
                <td>
                    @Html.ActionLink(tag.UrlName, "Edit", new { id = tag.Id })
                </td>

            </tr>
        }
    </tbody>
</table>
@{Html.RenderPartial("PostPager", Model.Pager);}

